Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Nim does the same but with a Python-like syntax.


sort by: page size:

Nim uses Python-like syntax but is statically typed. It explicitly lists Python as one of its main inspirations.

or even Nim if you prefer Pythonic syntax with the same portability.

Thank you, this is what I meant when I said similar to Python. Someone with Python familiarity should have zero issues with writing a Nim program and will mostly feel comfortable with the syntax.

I also recommend looking at Nim. It has Python-like syntax but it feels very different than Python for me when using it. Stellar language though that has been getting a lot of attention!

It's also very easy to write Nim, the syntax has been compared to Python.

Isn't nim built for pythonists to do just this sort of thing?

Since you like Python's syntax, what's your opinion about Nim?

Most Python translates into Nim quite easily, actually.

Same is true of Python (and I assume, Nim)

have you checked out nim? if you're a pythonista you might find it more similar to what you're used to

Somewhat related, had anyone used Nim? These days I've been using it for its Python like syntax year C like speed, especially if I just need to script something quickly.

Nim's syntax is very similar to Python simply because both are expressive, lean and have no braces. Naturally Python is dynamically typed and this, unfortunately, affects performance and maintainability.

Nim? I know it has Python-like syntax and aims to be performant, but don’t know much beyond that.

I like Nim. I am learning it now. However, Nim is not Python and this post is about Python.

If you ignore the whitespace sensitivity, Nim's syntax is actually more similar to Pascal than to Python.

Too bad nim uses a whitespace-sensitive syntax like python, something I personally dislike.

Nim is a modern Pascal/Delphi with a Pythonic syntax. You'll probably like it.

Thank you. That is the best answer to comparing languages I have seen by looking at your two codes. I never really thought of Nim as being that close to Python in syntax but seeing the two codes together I saw how you were able to achieve that and it was really insightful.

I haven't heard much about Nim (until reading this post). I saw that someone was comparing it to python in a way? What are your thoughts on it?
next

Legal | privacy