This website requires JavaScript.
Cadquos
Explore
Marketplace
Help
Register
Sign In
Cadquos
Development
Main Navigation
🏠
Dashboard
🏢
Organizations
8
📁
Repositories
8
👥
Team
🗓️
Calendar
Workspace
📝
작업메모
🚀
시작하기
📝
빠른 메모
👻
나의 공간
3
📝
작업목록
Settings
Connections
Public Pages
Notifications
3
Help Center
John Smith
john@example.com
ByoungSooPark
/
modeling-app
Watch
1
Star
0
Fork
0
You've already forked modeling-app
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
codex/fix-race-condition-in-js-ts-code
modeling-app
/
rust
/
kcl-lib
/
tests
/
argument_error
/
input.kcl
6 lines
44 B
Plaintext
Raw
Permalink
Normal View
History
Unescape
Escape
KCL: User-defined KCL functions in examples etc now use keywords (#6603) Preparing for the removal of positional functions from the language. The first big step is to change all our KCL code examples, test code, public samples etc to all use keyword functions. Apologies for how large this PR is. Most of it is: - Changing example KCL that defined its own functions, so the functions now use keyword arguments rather than positional arguments. E.g. change `cube([20, 20])` to be `cube(center = [20, 20])`. - Some parts of the code assumed positional code and didn't handle keyword calls, e.g. the linter would only check for positional calls to startSketchOn. Now they should work with either positional or keyword. - Update all the artifacts This does _not_ remove support for positional calls. That will be in a follow-up PR.
2025-05-01 11:36:51 -05:00
fn f(@i) {
Fix argument error to point to the arg at the call site (#4533) * Fix argument error to point to the arg at the call site * Change MemoryFunction to accept Vec<Arg> instead of Vec<KclValue> * Rename variable to be clearer * Fix one more argument error message * Clean up from PR feedback
2024-11-21 13:10:03 -05:00
return 5
}
KCL: User-defined KCL functions in examples etc now use keywords (#6603) Preparing for the removal of positional functions from the language. The first big step is to change all our KCL code examples, test code, public samples etc to all use keyword functions. Apologies for how large this PR is. Most of it is: - Changing example KCL that defined its own functions, so the functions now use keyword arguments rather than positional arguments. E.g. change `cube([20, 20])` to be `cube(center = [20, 20])`. - Some parts of the code assumed positional code and didn't handle keyword calls, e.g. the linter would only check for positional calls to startSketchOn. Now they should work with either positional or keyword. - Update all the artifacts This does _not_ remove support for positional calls. That will be in a follow-up PR.
2025-05-01 11:36:51 -05:00
map(f, f = [0, 1])
Reference in New Issue
Copy Permalink