Syntactic sugar is a computer science term that refers to syntax within a programming language that is designed to make things easier to read or to express.
Haskell's record syntax is considered by many to be a wart on an otherwise elegant language, on account of its …
layout haskell syntax syntactic-sugarI just noticed this construct somewhere on web: val list = List(someCollection: _*) What does _* mean? Is this a syntax sugar …
scala syntactic-sugaris there a way we can import a class under another name? Like if i have a class called javax.…
java syntactic-sugar importIt seems like in most mainstream programming languages, returning multiple values from a function is an extremely awkward thing. The …
python function language-agnostic language-design syntactic-sugarNote: I've seen this question asked sometimes before (a, b, c), but neither of these was in C#, nor helpful. …
c# syntactic-sugarThe extended slice syntax in python has been explained to me as "a[n:m:k] returns every kth element …
python list slice syntactic-sugarWhat are all the instances of syntactic sugar in Scala? They are hard to search for since most/all of …
scala syntactic-sugarHere are some gems: Literals: var obj = {}; // Object literal, equivalent to var obj = new Object(); var arr = []; // Array literal, equivalent …
javascript language-features syntactic-sugarI have been looking into Ruby and find its keywords "until" and "unless" very interesting. So I thought what was …
c++ c syntax metaprogramming syntactic-sugarI have just found out this syntax for a scala Map (used here in mutable form) val m = scala.collection.…
scala maps syntactic-sugar scala-collections