Re: var param vs tuple as return value

2017-01-28 Thread mmierzwa
I know. Closed. I am sorry but let me add last quick remark. Such discussions, even when look somewhat as a fight, are not necessarily bad thing. It is good to see some other people opinions as long as they are backed up with constructive arguments. So if it is possible to make section for my qu

Re: var param vs tuple as return value

2017-01-28 Thread Araq
> I was not off-topic. This thread got pivoted to discussion of preferred > communication methods by Araq himself before I got here. Oh yeah and I regretted this remark... It's fine to ask newbie questions here, the forum will get a section for this. Now consider this thread **locked** (the for

Re: var param vs tuple as return value

2017-01-28 Thread Libman
> StackOverflow is nothing at all like Facebook. Relating them this way is > absurd. There are similarities and differences. [StackOverlow](https://en.wikipedia.org/wiki/Stack_Overflow) (Alexa rank 43) is a part of [Stack Exchange Inc](https://en.wikipedia.org/wiki/Stack_Exchange) (a for-profi

Re: var param vs tuple as return value

2017-01-27 Thread jibal
> > Well there's a nim tag on StackOverflow. > > Relying on Big Dot-Com sites too much is a very bad idea. I've had horrible > experiences with Facebook StackOverflow is nothing at all like Facebook. Relating them this way is absurd. > censorship, deception, deliberately crippled APIs, posts di

Re: var param vs tuple as return value

2017-01-26 Thread bpr
Both the [D Forum](http://forum.dlang.org/) and the Discourse based [Julia](https://discourse.julialang.org/) forums have learner sections. I think the IRCs are not the right medium for newbie questions, as @mmierza explains, just like the forum is not the right medium for a bug report. The Nim

Re: var param vs tuple as return value

2017-01-26 Thread Libman
I think that noobs (like myself) should be encouraged to avoid annoying the DevGods on GitHub with anything short of a fully-baked well-thought-out bug report, but message forums are a lower tier of seriousness, about on par with chat, where novices and noobs can help each-other. Chat logs have

Re: var param vs tuple as return value

2017-01-25 Thread strikr
+1 Michal. The _success_ of 'Nim' is the _success_ of all of us who are interested in the learning and contributing to the language and the community !

Re: var param vs tuple as return value

2017-01-25 Thread mashingan
_var_ is passing-by-reference. Having return value and/or arguments passing is different issue I think. +1 @flyx

Re: var param vs tuple as return value

2017-01-25 Thread flyx
Well there's a [nim](http://stackoverflow.com/questions/tagged/nim) tag on StackOverflow. It certainly wouldn't harm if Nim had more exposure there. I think this forum should be more for discussions which do not fit into SO's Q&A format.

Re: var param vs tuple as return value

2017-01-25 Thread mmierzwa
Thank you. I will use this IRC bridge. Anyhow, I feel forum is a lot better for even newbie questions. If language becomes more popular you will have the same questions asked again and again in IRC whilst they should be easy discoverable in forum (like in stackoverflow), this could serve as addi

Re: var param vs tuple as return value

2017-01-25 Thread stisa
There's an irc channel here [http://webchat.freenode.net/?channels=nim](http://webchat.freenode.net/?channels=nim) , which is bridged to gitter, so you don't have to sign up. It's also logged, so you can read past conversations ( logs go back to about june 2012 I think ? ) [http://irclogs.nim-l

Re: var param vs tuple as return value

2017-01-25 Thread strikr
+1 Michal.

Re: var param vs tuple as return value

2017-01-25 Thread mmierzwa
Hi "Btw please join IRC or gitter instead of flooding this forum with newbie questions, no offense." I do not want to flood your forum, but I do realize my questions would be newbie as well. The problem is, if I use irc-like I have chance to get answer only from people who are already online/r

Re: var param vs tuple as return value

2017-01-25 Thread Araq
'var' can be faster since the semantics differ: Essentially a return type promises a "fresh" memory location, 'var' doesn't promise anything and so can be faster. Btw please join IRC or gitter instead of flooding this forum with newbie questions, no offense.

var param vs tuple as return value

2017-01-25 Thread strikr
is there any performance difference between using var parameters versus tuple as a return value ?