В Хаскеле засада - это заглавная буква, значит это должен быть конструктор, а не простая функция. Зато там есть просто расширение 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
no subject
no subject
no subject
no subject
no subject
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
(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
no subject
>>> функциями = 125
>>> функциями
125
no subject
>>> def гы(э): print('гы'*э) ... >>> гы(3) гыгыгыno subject
no subject
漢字 = 4
漢字 * 2
produces 8
no subject
no subject
Хинт:
0030 FE00; short diagonal stroke form; # DIGIT ZERO
Upd: хорошо отнесётся. Можно obfuscated Python делать.
no subject
Удивительно, что питон их позволяет.
no subject
no subject
no subject
>>> 😀 = 1 File "", line 1 😀 = 1 ^ SyntaxError: invalid character in identifierno subject
no subject