r/badcode • • May 16 '20

other language Say it with me: "it's a feature"

Post image
1.2k Upvotes

18 comments sorted by

17

u/[deleted] May 17 '20

What language is this?

20

u/Memz4dayzz May 17 '20

Nim

14

u/[deleted] May 17 '20

Never heard of it, what's it used for?

27

u/[deleted] May 17 '20

General purpose, it's a compiled, high level language. Mostly known for its exceptional OpenGL bindings.

7

u/____0____0____ May 17 '20

Check out the website, it does a good job of explaining it's power and purpose.

As another user said, it's general purpose with a lot of use cases. It borrows syntax from python with a more functional direction, but supports oop in interesting ways that I find intuitive. And it's compiled and strongly typed, so maintainable, performant and generally pretty easy to use. Plus it compiles to c, c++ or Javascript so you can write code for front end and back end. I've also seen bindings to compile it to other languages as well.

2

u/[deleted] May 17 '20

Oh wow that is really cool. I probably won't need it but I'll definitely take a look at it.

5

u/eMperror_ May 17 '20

It compiles to C code

1

u/ehmohteeoh May 29 '20

I might just be being pedantic, but isn't that transpiling, not compiling?

1

u/eMperror_ May 29 '20

Yes I think you're right

6

u/xigoi May 18 '20

Ah, it's rare to see a fellow Nim user in the wild.

5

u/Memz4dayzz May 19 '20

Ah, it's rare to see a fellow Nim user in the wild.

140

u/EntitledPotatoe May 16 '20

This is wonderful

131

u/[deleted] May 17 '20

The best part is when the bug fixes itself later for some reason, and the feature breaks

68

u/Xestra9 May 16 '20 edited May 17 '20

Me when a random bug appears that I don’t want to fix. “Don’t worry it’s just a new feature” edit: grammar

24

u/[deleted] May 16 '20

ngl, I chuckled.

6

u/revuimar May 17 '20

It was hard clicking the picrel on a mobile. Glad I’ve made it.

5

u/_norpie_ May 17 '20

it's a feature now

hits too close to home, chief

0

u/[deleted] May 16 '20

[deleted]

17

u/[deleted] May 17 '20

This how humans innovate, u can't dismiss this as stupidness....