В Хаскеле засада - это заглавная буква, значит это должен быть конструктор, а не простая функция. Зато там есть просто расширение UnicodeSyntax, которое позволяет писать всякое вроде
toTensor ∷ SingI is ⇒ t is e → Tensor is e toTensor = toT sing where toT ∷ Shape is → t is e → Tensor is e
(base) C:\Users\NeuralNets>python Python 3.7.0 (default, Jun 28 2018, 08:04:48) [MSC v.1912 64 bit (AMD64)] :: Anaconda, Inc. on win32 Type "help", "copyright", "credits" or "license" for more information. >>> 0=1 File "", line 1 SyntaxError: can't assign to literal
no subject
Date: 2019-03-04 19:47 (UTC)no subject
Date: 2019-03-04 20:08 (UTC)no subject
Date: 2019-03-04 22:16 (UTC)no subject
Date: 2019-03-04 23:26 (UTC)no subject
Date: 2019-03-05 06:03 (UTC)no subject
Date: 2019-03-08 04:32 (UTC)toTensor ∷ SingI is ⇒ t is e → Tensor is e
toTensor = toT sing
where toT ∷ Shape is → t is e → Tensor is e
https://github.com/tensor5/tensor/blob/master/src/Data/Tensor.hs
no subject
Date: 2019-03-04 23:40 (UTC)(base) C:\Users\NeuralNets>python
Python 3.7.0 (default, Jun 28 2018, 08:04:48) [MSC v.1912 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> 0=1
File "", line 1
SyntaxError: can't assign to literal
no subject
Date: 2019-03-04 23:48 (UTC)no subject
Date: 2019-03-04 23:56 (UTC)>>> функциями = 125
>>> функциями
125
no subject
Date: 2019-03-05 00:46 (UTC)>>> def гы(э): print('гы'*э) ... >>> гы(3) гыгыгыno subject
Date: 2019-03-05 01:08 (UTC)no subject
Date: 2019-03-05 02:37 (UTC)漢字 = 4
漢字 * 2
produces 8
no subject
Date: 2019-03-08 13:41 (UTC)no subject
Date: 2019-03-05 03:32 (UTC)Хинт:
0030 FE00; short diagonal stroke form; # DIGIT ZERO
Upd: хорошо отнесётся. Можно obfuscated Python делать.
no subject
Date: 2019-03-05 04:54 (UTC)Удивительно, что питон их позволяет.
no subject
Date: 2019-03-05 06:04 (UTC)no subject
Date: 2019-03-06 05:09 (UTC)no subject
Date: 2019-03-06 06:01 (UTC)>>> 😀 = 1 File "", line 1 😀 = 1 ^ SyntaxError: invalid character in identifierno subject
Date: 2019-03-06 09:45 (UTC)no subject
Date: 2019-03-08 04:20 (UTC)