@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.
> 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.
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
What is the rationale for removing named tuples?
> 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
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
@euant
That sounds good. You might want to release the first videos once you finished
them, because I am excited
changing the colsole default font family to Courier New 20 fixed the problem.
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.
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.
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) ).
The skin is a language's personality. To copy other personalities is no
personality.
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.
13 matches
Mail list logo