Closed vinisalazar closed 3 years ago
Hi @vinisalazar thanks for all the issues and PRs!
Perhaps a distinct syntax highlighting style for functions would be preferable to including parentheses on all functions. Including the parentheses might also indicate that the function takes no arguments, or that you are dealing with a curried function etc. so I personally prefer just the name of the function to be invoked.
Another thing that may be a nice in-between would be to eventually convert all built-in references to actual references to that built-in in the Python docs. That's a larger job and one that could potentially be done programmatically though...
Functions are referred multiple times throughout the text of this lesson, whether they are built-in functions (e.g. Episode 04) or library functions (e.g. "Pass the name of the column to
read_csv
as itsindex_col
parameter to do this. ").I was thinking that maybe it would be nice to have all mentions to functions to be written by including the parentheses, e.g.
print()
instead ofprint
,len()
instead oflen
, and so on. Although passing a function without the parentheses to the interpreter is valid code, returning afunction
object, I considered that referring to them with parentheses throughout the text helps to reinforce the difference between functions and other objects, such as arguments, modules, and statements.Are there any opinions on this? Or is there a reason for not using the parentheses?
Thanks, Vini