Preheat oven to 350°F (175°C). Line an 8x8 or 9x9 inch pan with parchment paper or lightly grease it.
In a large mixing bowl, cream together the softened butter, brown sugar, and granulated sugar until fluffy.
Add eggs and vanilla extract, and beat until fully combined.
Stir in the flour, baking soda, cinnamon, and salt until just combined.
Fold in the oats and raisins (plus nuts if using).
Spread the dough evenly into the prepared pan and smooth the top.
Bake for 22–28 minutes, or until the edges are golden and the center is just set.
Let cool completely in the pan before lifting out and slicing into bars.