Nim is a compiled, garbage-collected systems programming language which has an excellent productivity/performance ratio. Nim's design focuses on efficiency, expressiveness, elegance (in the order of priority).
People
Repo info
Activity
Mar 03 2017 15:52
@dom96 banned @Octopoda7
Feb 12 2017 23:57
@dom96 banned @zzz125
Dec 23 2016 19:43
@dom96 banned @Izrab
From IRC (bridge bot)
@FromIRC
<xace> oh, nvm now i see that it's part of a if-statement
liuxiaodong
@gogolxdong
D:\Nim\lib\system\jssys.nim(53, 6) Error: 'getCurrentException' is not GC-safe as it accesses 'lastJSError' which is a global using GC'ed memory when compile nimx with task nake js
Luke Parker
@kayabaNerve
Use except Exception as e
From IRC (bridge bot)
@FromIRC
<owl_000> what enum {.pure.} pragma does? i added {.pure.} and can't find any differences.
<owl_000> and is enum values can be only string?
Zachary Carter
@zacharycarter
owl_000: pure forces you to address enum values as EnumName.EnumValue
From IRC (bridge bot)
@FromIRC
<Zevv> .pure. enums allow for names to collide
Zachary Carter
@zacharycarter
to allow for ^
From IRC (bridge bot)
@FromIRC
<Zevv>@zacharycarter: you're not forced to qualify
Zachary Carter
@zacharycarter
oh? I thought you were
From IRC (bridge bot)
@FromIRC
<Zevv> only for non-unique values
Zachary Carter
@zacharycarter
ah okay
From IRC (bridge bot)
@FromIRC
<livcd> good morning
<livcd>@gogolxdong: you around?
Zachary Carter
@zacharycarter
I think the best thing to do is for an enum named FooEnum prefix all values with fe so like feFoofeBar etc...
From IRC (bridge bot)
@FromIRC
<Zevv> that is soo C
<lqdev[m]> but it doesn't cause as many problems as in C (namespacing)
Zachary Carter
@zacharycarter
I don't really mind if some C patterns are baked into Nim
but others cough Zevv take offense for some reason :P
like when you use const FOO_BAR = 1
I have a feeling that makes Zevv twitch / cringe
From IRC (bridge bot)
@FromIRC
<FromDiscord_> <Shield> you gotta scream those consts
<Zevv> oh no I love that
<Zevv> I'm a C man, and too old to ever change
_
Zachary Carter
@zacharycarter
lol
From IRC (bridge bot)
@FromIRC
<Zevv> I hate it that nim has no proper preprocessor to abuse
<Zevv> all this fiddling with macros, bah
Zachary Carter
@zacharycarter
hahaha
Alexander Ivanov
@alehander92
you can kinda do it with source filters
liuxiaodong
@gogolxdong
@livcd yes
From IRC (bridge bot)
@FromIRC
<Zevv> wow lets make an m4 compatible source filter
Alexander Ivanov
@alehander92
+ term rewriting macros
From IRC (bridge bot)
@FromIRC
<livcd>@gogolxdong: Do you know xcgui ?
<PMunch> livcd, hard to find any english docs on it it seems