logoalt Hacker News

DaiPlusPlustoday at 3:25 AM2 repliesview on HN

To me, “keyword arguments” means actual language keywords being used as arguments, like “minute” or “hour” in T-SQL’s DATEDIFF, for example: `SELECT DATEDIFF( hour, NOW(), someDateCol )`.

…but I think the author meant “named arguments”, like we have in C#, Swift, and Objective-C.


Replies

rileymat2today at 4:07 AM

Python calls them keyword arguments.

show 3 replies
akoboldfryingtoday at 4:08 AM

I think the author meant "keyword arguments", like they're called in Python, and which they mentioned in the first sentence.

https://docs.python.org/3/glossary.html?hl=en-GB#term-keywor...