top | item 23334587

(no title)

lactobacillis | 5 years ago

People complain about lack of generics and proper try/except/finally in Go. Nim has both.

discuss

order

sagichmal|5 years ago

And no native concurrency.

PMunch|5 years ago

Nim has thread support natively. And an async implementation in it's standard library which is made entirely as a library, so you're free to write your own, in fact there exists alternative implementations of async/await in Nim. Just the fact that a feature like this _can_ be implemented as a library is a testament to how powerful of a language Nim is.

throwaway_pdp09|5 years ago

It's not my area but, surely concurrency can be added, and why does it need to be native? Surely a library is fine.

(I chose not to learn go because of it's lack of generics and exceptions. It seemed like a huge step backwards)

benibela|5 years ago

Then let's ask instead, why use Nim over Pascal?

pjmlp|5 years ago

Actually type safe, with support for various kinds of automatic memory management.

Pascal dialects, while much safer than C, suffer from use-after-free and possible memory leaks, also you don't need to mark unsafe code as such.

This includes any modern Pascal variant.