Remix.run Logo
Python with braces. Because Python is awesome, but whitespace is awful(github.com)
5 points by Imustaskforhelp 17 hours ago | 8 comments
Imustaskforhelp 17 hours ago | parent | next [-]

I just found it on a reddit post from r/programmerhumour and I found it to be actually decent after I mentioned someone nim in here on HN and they said that they don't like whitespace and I thought that they were fair and I actually looked at a nim processor that could do something like it but there were none.

https://www.reddit.com/r/ProgrammerHumor/comments/1np5g2t/th...

Here is the reddit post

Here is the HN person's comment https://news.ycombinator.com/item?id=45346840

Although, This isn't related to python, I actually went into Nim forum to see that they were using it because of their inspiration with python and so It was a bit funny / semi full circle seeing Python with braces.

Maybe we need to make Nim with braces as well :> I think that some people might genuinely like that. Its definitely a bit in my mind.

cb321 4 hours ago | parent [-]

Nim actually already supports using `()` as braces most of the time for most constructs. So, in this sense it is more like Haskell than Python, though the latter is more well known.

Nim is also more "expressional" than Python in many ways. So, for example, in Nim you can say:

    let x = (try: dict[key] except: 2)
    for i in 1..x: (
      echo i
    )
Most users hate how that looks, though, much as most users of bracist languages also hate:

    int foo(char bar) {
        int c = 0;
        for (char i = 0; i < bar; i++) c++;
        return c; } // could be many '}' here
In reality, these discussions feel more like style guide wars, reformatted as PLang syntax wars, pun intended.
JohnFen 16 hours ago | parent | prev | next [-]

This is interesting. I don't hate Python, but it has a few things that I find irritating enough that I tend not to use it. Topping that list is that white space is significant.

lordkrandel 5 hours ago | parent | prev | next [-]

One of the reasons of Python's success IS whitespace.

nick_travels 16 hours ago | parent | prev [-]

last commit 7y ago.. no need to elaborate

Imustaskforhelp 16 hours ago | parent [-]

Hm, I hadn't actually checked it but also I just saw it on their github issues and some kind soul had even created a logo for bython

although I think its definitely Ai generated but still, it has many people reacting and I think that the community is waiting to be revived lol.

https://github.com/mathialo/bython/issues/72

Nothing stops us from forking it either too or bringing the original person if they are still interested too y'know!

3 hours ago | parent | next [-]
[deleted]
nick_travels 3 hours ago | parent | prev [-]

that's for sure, but in the current AI ecosystem, no models are trained on this syntax. for me, its a deal breaker.