Re: REPL?

2017-02-27 Thread Fungi
@stisa, Why you didn't you say you are serious? I swear I thought you are joking with nim secret, and today when I just typed nim secret I totaly shocked! A REPL FOR A COMPILED LANGUAGE! I love you, REPL.

Re: Plans regarding named tuples

2017-02-27 Thread bpr
> What is the rationale for removing named tuples? Mentioned above, to simplify the language. They're largely redundant with objects. I think that `method` should get the boot too, but that might be much.

Re: Plans regarding named tuples

2017-02-27 Thread bluenote
Ah, maybe my assumptions were just wrong. All I knew was that something like this is not possible: # can't use `Anonymous` as return type proc test(): Anonymous = type Anonymous = object x: int y: int result = Anonymous(x: 0, y: 0) But it looks

Re: Plans regarding named tuples

2017-02-27 Thread dom96
What is the rationale for removing named tuples?

Re: Plans regarding named tuples

2017-02-27 Thread bluenote
> Please elaborate. I'm mainly aware of the situation in Scala, where the lack of named tuples is the reason why type-safe schema transformation is rather limited. When working with typed data, there are basically two options: * Use unnamed tuples, which is not really an option, because it

base64 encoding crashes

2017-02-27 Thread jordan
There is something odd with the output line length setting for base64 encoding. The statements: import strutils, bas64 echo "+".repeat(57).encode() and: echo "+".repeat(58).encode() work fine resulting in one or two output lines, but writing: echo

Re: Nim video tutorials

2017-02-27 Thread Fungi
@euant That sounds good. You might want to release the first videos once you finished them, because I am excited

Re: Howto: convert nim string encoding with Javascript

2017-02-27 Thread gil26
changing the colsole default font family to Courier New 20 fixed the problem.

Re: Nim video tutorials

2017-02-27 Thread euant
Regarding the above comment about annunciation and making sure the audio is clear and easy to understand, it would be a good idea to make sure it's open for people to submit closed captions for other languages to help aid that effort.

Re: Plans regarding named tuples

2017-02-27 Thread Araq
Well `object` is the obvious replacement, but this indeed does not cover all the use cases of named tuples. I like to remove named tuples to simplify the language. Maybe this means `object` needs to grow minor new capabilities. > I'm not sure if the DSL I'm designing would work without them.

Re: Nim video tutorials

2017-02-27 Thread hcorion
Some other cool topics that could use a video tutorial is making games ([2D](https://github.com/Vladar4/nimgame2) or [3D](https://github.com/krux02/opengl-sandbox) ).

Re: Nim Syntax ''Skins''

2017-02-27 Thread stbalbach
The skin is a language's personality. To copy other personalities is no personality.

Integer overflows

2017-02-27 Thread jlp765
I just added a Nim example to [RosettaCode](http://rosettacode.org/wiki/Integer_overflow#Nim) Please check for any errors and suggest improvements. The page does give a good summary of how Nim handles these edge cases.