[Haskell-cafe] an idea for modifiyng data/newtype syntax: use `::=` instead of `=`
MigMit
miguelimo38 at yandex.ru
Sat Aug 8 17:14:57 UTC 2015
Oh, you're right. We need to use Hungarian notation properly.
Отправлено с iPad
> 8 авг. 2015 г., в 18:56, M Farkas-Dyck <strake888 at gmail.com> написал(а):
>
>> On 08/08/2015, MigMit <miguelimo38 at yandex.ru> wrote:
>> That's ridiculous. The code would only be intuitive enough if it's written
>> like this:
>>
>> típus Név = Sor
>> adat Időpont = Időpont Egész Egész Egész
>
> Actually I think you missed the point here:
>
> adat Időpont ahol
> Időpont :: Egész -> Egész -> Egész -> Időpont
>
> Much better ☺
More information about the Haskell-Cafe
mailing list