Re: [Vala] Safe call operator



Do you know the reason why it was rejected?  I searched for more information but could only find the 
proposals, not the rejection.

A null-safe operator (an "elvis" operator) seems like a natural complement to the nullable operator already 
in Vala.

-- Jim

On Tue, Jan 31, 2012 at 4:58 AM, Luca Bruno <lethalman88 gmail com> wrote:
On Tue, Jan 31, 2012 at 1:34 PM, Artem Tarasov <lomereiter googlemail com>wrote:

There's so-called 'safe call operator' in Kotlin programming language
which, when used in chains, resembles 'Maybe' monad from Haskell. Thus it
makes easier to work with nullable types in some cases. Is it possible to
add such a feature to Vala?


Adding a feature is always possible, but it must be discussed first :-)
As a starter, Java rejected that syntax.

-- 
www.debian.org - The Universal Operating System




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]