gregsexton / gregsexton/VimCalc

feature request: formulae

Open
#3 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
50
Forks
8
PR merge metrics
No merged PRs in 30d

Description

I understand the desire to avoid functions, but they do allow code reuse. A happy medium would be formulae, that is names attached to a specific expression. It could be as simple as

```
> sqr := a * a
formula sqr created
> a = 5
ans = 5.0
> sqr
ans = 25.0
```

or, with a little more work, as nice as

```
> sqr(a) := a * a
formula sqr created
> sqr(5)
ans = 25.0
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.