Skip to content

Using numbers in functions #144088

@Lyranile

Description

@Lyranile

It's a very simple question, I want to call my function 14, like this:

fn 14() {
    println!("some function");
}

Is it possible?

Also, why is sinus being called like this:
3.14f32.sin()
When f is actually not part of the number, it is actually indicating the type?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions