[Issue 7176] Lambda => syntax for function and methods too

2020-12-30 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7176 --- Comment #24 from Mathias LANG --- *** Issue 12288 has been marked as a duplicate of this issue. *** --

[Issue 7176] Lambda => syntax for function and methods too

2020-12-30 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7176 Max Samukha changed: What|Removed |Added CC||maxsamu...@gmail.com --- Comment #23 from Max

[Issue 7176] Lambda => syntax for function and methods too

2020-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7176 Dlang Bot changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 7176] Lambda => syntax for function and methods too

2020-12-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7176 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #21 from Dlang Bot ---

[Issue 7176] Lambda => syntax for function and methods too

2016-02-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7176 --- Comment #20 from Nick Treleaven --- Just noticed C# 6.0 has this syntax, they call it "Expression Body Definitions": https://msdn.microsoft.com/en-us/library/ms173114.aspx#Anchor_6 C# also has the same (x, y) => x ==

[Issue 7176] Lambda = syntax for function and methods too

2015-03-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7176 --- Comment #19 from Ketmar Dark ket...@ketmar.no-ip.org --- Created attachment 1499 -- https://issues.dlang.org/attachment.cgi?id=1499action=edit working PoC with samples --

[Issue 7176] Lambda = syntax for function and methods too

2013-03-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7176 --- Comment #15 from bearophile_h...@eml.cc 2013-03-20 06:13:22 PDT --- After having used Scala a little, I now have changed my mind a little again. In Scala you write: def f3(x: Int, y: Int): Int = if (x == 0) x else x * y This is current

[Issue 7176] Lambda = syntax for function and methods too

2013-03-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7176 Nick Treleaven ntrel-pub...@yahoo.co.uk changed: What|Removed |Added CC|

[Issue 7176] Lambda = syntax for function and methods too

2013-03-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7176 --- Comment #17 from Kenji Hara k.hara...@gmail.com 2013-03-20 08:21:44 PDT --- I don't like this feature. Because: 1. it would reduce code readability. class LibClass { int foo() { return 1; } string bar() = hi; } Mixing

[Issue 7176] Lambda = syntax for function and methods too

2013-03-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7176 --- Comment #18 from timon.g...@gmx.ch 2013-03-20 13:33:49 PDT --- (In reply to comment #17) I don't like this feature. Because: 1. it would reduce code readability. On the contrary! It also increases language consistency. class

[Issue 7176] Lambda = syntax for function and methods too

2012-07-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7176 Artem Borisovskiy kolo...@bk.ru changed: What|Removed |Added CC||kolo...@bk.ru ---

[Issue 7176] Lambda = syntax for function and methods too

2012-07-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7176 --- Comment #11 from Jacob Carlborg d...@me.com 2012-07-20 07:06:34 PDT --- (In reply to comment #10) Why not just make bar_ public? You do not add any code to the getter nor to the setter anyway. Perhaps I want it to be virtual, to be

[Issue 7176] Lambda = syntax for function and methods too

2012-07-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7176 --- Comment #12 from David Piepgrass qwertie...@gmail.com 2012-07-20 08:59:15 PDT --- (In reply to comment #11) (In reply to comment #10) Why not just make bar_ public? You do not add any code to the getter nor to the setter anyway.

[Issue 7176] Lambda = syntax for function and methods too

2012-07-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7176 --- Comment #13 from Jonathan M Davis jmdavisp...@gmx.com 2012-07-20 10:06:53 PDT --- Yes, or, quite often I want to write a trivial getter but a nontrivial setter. So I'd like just the getter for free. Also, when the interface is going to

[Issue 7176] Lambda = syntax for function and methods too

2012-07-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7176 --- Comment #14 from Jacob Carlborg d...@me.com 2012-07-20 10:22:44 PDT --- (In reply to comment #12) Yes, or, quite often I want to write a trivial getter but a nontrivial setter. So I'd like just the getter for free. Also, when the

[Issue 7176] Lambda = syntax for function and methods too

2012-07-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7176 --- Comment #9 from Jacob Carlborg d...@me.com 2012-07-18 23:20:18 PDT --- (In reply to comment #8) On the other hand, a lot of the small functions I write are boilerplate such as property getters and forwarding functions in decorators, so

[Issue 7176] Lambda = syntax for function and methods too

2012-07-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7176 David Piepgrass qwertie...@gmail.com changed: What|Removed |Added CC|

[Issue 7176] Lambda = syntax for function and methods too

2012-01-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7176 Jacob Carlborg d...@me.com changed: What|Removed |Added CC||d...@me.com --- Comment

[Issue 7176] Lambda = syntax for function and methods too

2012-01-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7176 --- Comment #1 from bearophile_h...@eml.cc 2012-01-03 16:07:57 PST --- There are 3 votes now. But this feature doesn't add a lot to D. This feature looks nice, but I don't feel a need for it in my code. -- Configure issuemail:

[Issue 7176] Lambda = syntax for function and methods too

2012-01-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7176 Jonathan M Davis jmdavisp...@gmx.com changed: What|Removed |Added CC|

[Issue 7176] Lambda = syntax for function and methods too

2012-01-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7176 timon.g...@gmx.ch changed: What|Removed |Added CC||timon.g...@gmx.ch --- Comment #3

[Issue 7176] Lambda = syntax for function and methods too

2012-01-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7176 --- Comment #4 from Jonathan M Davis jmdavisp...@gmx.com 2012-01-03 16:48:12 PST --- It's very different IMHO to introduce it in lambdas which are already part of an expression and where the number of characters definitely matters than it is

[Issue 7176] Lambda = syntax for function and methods too

2012-01-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7176 --- Comment #5 from bearophile_h...@eml.cc 2012-01-03 16:54:10 PST --- (In reply to comment #2) Currently I am neutral toward this feature. I see it used in Scala and it looks nice, but I don't think it will improve my D programs a lot.

[Issue 7176] Lambda = syntax for function and methods too

2012-01-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7176 --- Comment #6 from Jonathan M Davis jmdavisp...@gmx.com 2012-01-03 19:10:35 PST --- What kind of harm are you referring to? It doesn't fit with the rest of the language. The syntax is very different from other declarations. This reduces