[Python-ideas] Why shouldn't Python be better at implementing Domain Specific Languages?

Stefan Behnel stefan_ml at behnel.de
Sat Sep 1 04:01:06 EDT 2018


Matthew Einhorn schrieb am 31.08.2018 um 20:57:
> with model:
>     with Dense():
>         units = 64
>         activation = 'relu'
>         input_dim = 100
> 
>     with Dense():
>         units = 10
>         activation = 'softmax'

This looks like it could use 'class' instead of 'with'.

Stefan



More information about the Python-ideas mailing list