# 'move() function is a reserved name' warning

**URL:** https://discourse.processing.org/t/move-function-is-a-reserved-name-warning/40953
**Category:** p5.js
**Created:** [February 17, 2023, 1:41pm UTC](https://discourse.processing.org/t/move-function-is-a-reserved-name-warning/40953 "2023-02-17T13:41:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Laurent](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@Laurent](https://discourse.processing.org/u/Laurent)
#### Post date: [February 17, 2023, 1:41pm UTC](https://discourse.processing.org/t/move-function-is-a-reserved-name-warning/40953/1 "2023-02-17T13:41:31Z")

</div>

Hi everyone,

I’ve been defining and using in one of my sketch for year a **move()** function as this one:

```auto
function move(){
  
  print('hello');
  
}

```

I’ve just updated p5js library used by this sketch (the previous one was 3 years old…) and since I get the following warning in Chrome Dev Tools:

> p5.js says: you have used a p5.js reserved function “move” make sure you change the function name to something else.
> 
> - More info: [https://p5js.org/reference/#/p5/move](https://p5js.org/reference/#/p5/move)  
> `p5js.org/reference/#/p5/move`

But I cannot find any move() function in p5js, excepted a **.move()** method in **camera** object (`https://p5js.org/reference/#/p5.Camera/move()`) and **MOVE** constant (with capital letters for the id of course) used as argument by the **cursor()** function (`p5js.org/reference/#/p5/move`)

I’ve written a small IDE for my students that offers them opportunity to learn programming first steps with Blocky and Javascript in parallel. The Javascript library I’ve developped contains basic functions to program a game and one of them that is called _move()_. As I’ve already written all the documentation, including exercices, screen and video captures, so I want to keep this function with this name _move()_ into my library.

I don’t see any standalone _move()_ function into p5js library. So why this warning? Is this an issue in p5js? How to get rid off this warning without changing the function name?

Thanks a lot for your lights!

Laurent

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [February 17, 2023, 1:46pm UTC](https://discourse.processing.org/t/move-function-is-a-reserved-name-warning/40953/2 "2023-02-17T13:46:08Z")

</div>

> [@Laurent](#):
>
> So why this warning?

Maybe b/c p5js’ warning feature ignores case. So _move_ & _MOVE_ are the same.

> [@Laurent](#):
>
> How to get rid of this warning without changing the function name?

Open an issue on their repo:

> **[Issues · processing/p5.js](https://github.com/processing/p5.js/issues)**
>
> p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Proces...

---

<div class="post-metadata">

### Author: ![Laurent](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@Laurent](https://discourse.processing.org/u/Laurent)
#### Post date: [February 21, 2023, 5:55pm UTC](https://discourse.processing.org/t/move-function-is-a-reserved-name-warning/40953/3 "2023-02-21T17:55:19Z")

</div>

Thanks a lot. New issue added: [non case sensistive reserved names checking generates incorrect warnings · Issue #6026 · processing/p5.js · GitHub](https://github.com/processing/p5.js/issues/6026)
