Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
将函数参数定义为关键字而不是普通参数是否有优势?希望在http://docs.racket-lang.org/reference/define.html上找到答案
使用关键字参数时
- there are a lot of arguments - most arguments have default arguments
例如,对于一个有 10 个参数的函数,可能很难记住参数的顺序。使用关键字时,顺序无关紧要。