Skip to content

Commit

Permalink
Merge pull request #38 from kin-lang/obj-member-function
Browse files Browse the repository at this point in the history
feat: objects having member functions
  • Loading branch information
pacifiquem authored Feb 8, 2024
2 parents a1c9ef6 + a2b10b8 commit 179b4be
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions todo.md
Original file line number Diff line number Diff line change
@@ -1,17 +1 @@
# Todo

1. **Objects having member functions.**
```kin
reka obj = {
function: porogaramu_ntoya () {
# some statements
}
}
```

Even though these functionalities can be achieved by nesting functions, in Kin you can do:
```kin
foo.bar()
```
if inside foo function we have bar function.

0 comments on commit 179b4be

Please sign in to comment.