Skip to content

new operator proposal: \ (inverted division) #52

Description

@Wintus

proposal

I'd like to propose a new arithmetic operation \ (inverse division), i.e. b\a = a/b

cf. It's supported in Julia.

x \ y | inverse divide | equivalent to y / x

ref. https://en.wikipedia.org/wiki/Division_(mathematics)#Notation

motivation

It would be easy to write an expression like ans\3 instead of 3/ans. This will reduce the number of key types.

technical concern

If an escape character is needed in the future, we may consider ` (backtick) instead to avoid conflict.

cf. Powershell use backtick for escaping.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions