Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Indented blocks should work for kwargs as well #25

@notpushkin

Description

@notpushkin

<...> If there was no operator, however, each line is an argument to the last function call.

print "Doge says:" sep: "\n"
    "not want talk"
    "finally sleep"

I expected something like that to work, too:

language_info = dict'
    name: "dg"
    version: get_distribution "dg" |>.version
    mimetype: "text/x-dg"
    file_extension: ".dg"

But it doesn't.

    ...
    File "/home/ale/dev/dg_kernel/dg_kernel/kernel.dg", line 13
    version: get_distribution "dg" |>.version
           ^
dg.SyntaxError: keyword argument to what function?

sigh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions