Because Julia has begin-end blocks, you can just use an empty block.

Here are some examples of what I mean:

~~~
function foo()
end
~~~

~~~
if true
elseif false
else
end
~~~

~~~
for i=1:10
end
~~~

Does that do what you wanted?

-- Leah


On Tue, Jul 22, 2014 at 3:44 PM, <yaoismyh...@gmail.com> wrote:

> Hi,
>
> Python has a 'pass' statement which allows null operations to be placed in
> control flows with ease.
> I guess I could just use a print statement, but I was just wondering
> whether Julia had an equivalent?
>
> Thanks
>

Reply via email to