# Keeping the syntax and the need to memorise syntax simple

**URL:** https://discourse.julialang.org/t/keeping-the-syntax-and-the-need-to-memorise-syntax-simple/44623
**Category:** Internals & Design
**Created:** [August 9, 2020, 3:58pm UTC](https://discourse.julialang.org/t/keeping-the-syntax-and-the-need-to-memorise-syntax-simple/44623 "2020-08-09T15:58:33Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![anon37204545](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@anon37204545](https://discourse.julialang.org/u/anon37204545)
#### Post date: [August 9, 2020, 9:55pm UTC](https://discourse.julialang.org/t/keeping-the-syntax-and-the-need-to-memorise-syntax-simple/44623/10 "2020-08-09T21:55:44Z")

</div>

> [@baggepinnen](#):
>
> Most commonly used keys are awkward to reach on a swedish keyboard.

Not only on Swedish… I hope that makes you feel better. 🙂

> [@Nav](#):
>
> I used to absolutely hate the `->` operator in C++.

Welcome to the club! Luckily for you, Julia doesn’t have such issues. I want to clarify some things:

> [@Nav](#):
>
> In Julia I see the same problem with syntax like `Dict3=Dict{String, Integer}("a"=>10, "c"=> 20)` .

You don’t need to always specify types (hello, C++). `String, Int64` will be automatically deduced by compiler:

```julia
julia> Dict("a" => 10, "c" => 20)
Dict{String,Int64} with 2 entries:
  "c" => 20
  "a" => 10

```

You don’t like `=>`? You can replace it with any other available symbol (from [How to change =\> to another symbol?](https://discourse.julialang.org/t/how-to-change-to-another-symbol/31981)):

```julia
julia> const → = =>
Pair

julia> 1 → 2
1 => 2

```

Regarding this:

> [@Nav](#):
>
> In `rand(Int, 2)` etc, it would be easier to type `int` , `float` etc, if we could just type it without having to press the Shift key. Also, it looks neater when they are lowercase.

> [@Nav](#):
>
> Case usage of functions like `SubString()` could perhaps be `substring()` or `subString()` .

Types are generally written in UpperCamelCase, as they are in Julia base / standard library. It’s standard in every modern language to write object type names that way, and base types are in no way more special than any object type you declare in Julia.

That may not satisfy your needs, though. Do you really dislike pressing Shift key? The solution is simple:

```julia
julia> const int = Int
Int64

julia> const float = Float64
Float64

julia> int(1.0)
1

julia> float(1.0)
1.0

```

---

_[View the full topic](https://discourse.julialang.org/t/keeping-the-syntax-and-the-need-to-memorise-syntax-simple/44623)._
