code:
load("dataframe.star", "dataframe")
# create a new DataFrame
df = dataframe.DataFrame([["cat", "meow"],
["dog", "bark"],
["eel", "zap"]],
columns=["name", "sound"])
The parser removes all of the whitespace from the left-hand side here. This is especially bad for python, which has semantically meaningful whitespace. Conditionals won't work at all:
Instead, I feel like the parser should be preserving all whitespace on the left-hand side, and can tell when the block is done by finding a line with the same indentation amount as the code: label.
The parser removes all of the whitespace from the left-hand side here. This is especially bad for python, which has semantically meaningful whitespace. Conditionals won't work at all:
Instead, I feel like the parser should be preserving all whitespace on the left-hand side, and can tell when the block is done by finding a line with the same indentation amount as the
code:label.